import request from "@/utils/request";

//文章评论列表
export const getCommentListApi = (params) =>
  request({
    url: "/v1_0/comments",
    method: "get",
    params,
  });

//点赞评论
export const likeingGoApi = (target) =>
  request({
    url: "/v1_0/comment/likings",
    method: "post",
    data: {
      target,
    },
  });
//取消点赞评论
export const likeingOutApi = (target) =>
  request({
    url: `/v1_0/comment/likings/${target}`,
    method: "DELETE",
  });
//发布平评论

export const commentPostApi = (data) =>
  request({
    url: "/v1_0/comments",
    method: "post",
    data,
  });
